Vayu Robins's post in Get number of pages in module was marked as the answer
Okay, I finally found the cause of it all. During one of the last few days, I must have changed the Access level for the child pages, which in turn prevented me from searching them, when not logged in. This works.
wire('pages')->count("parent=/case-references/, check_access=0"); Thank you everyone for helping me!