Question d’entretien chez Google

Coding interview: how many matches with "ax" in a string.