"How many times does B come before A?"

GetYarn