No there is no such concept or way to do something like that. LLMs do not have such kind of meta-knowledge over their training data or weights. But there could be explicit mentions about this on their training data and they could pick on that and that is probably the simplest explanation.
Not sure this is a claim that can be confidently made.
https://arxiv.org/abs/2309.00667
https://x.com/flowersslop/status/1873115669568311727?t=eBMbK...
Could it? Without explicit training for that, how would it be expected to know it has to be able to count occurrences of something?
There's limits to how far you can go with this — not only do humans make mistakes with this, but even in the abstract theoretical it can never be perfect: https://en.wikipedia.org/wiki/Münchhausen_trilemma — but it is still the "how".
(I wonder if giving an LLM content with intent to cause its users to spend money they didn't need to, would count as fraud, hacking, both, something else entirely?)
... the article did give me a different impression.
It's been found that data that begin with "Wikipedia:" are automatically weighted higher by language models during training, completely unsupervised.
https://www.bbc.com/news/technology-28481876.amp
https://www.bbc.com/news/technology-58559412.amp
(With apologies for amp links)