Earlier quoted context omitted.
I assume all of the models also have variations on, “how many ‘r’s in strawberry”.
The easiest way to fix these is give the model an environment to run code. Any model can easily one-shot a python script that can count the occurrence of any letter anywhere and return the result. It's just a tooling issue. You really can't "train" an LLM to do it because tokenisation and ... stuff.
Of course you could train it. Some quick scripting to find all words with repeat letters, build up sample sentences (aardvark has three a,) and you have hard coded the answer to simple questions that make your LLM look stupid.