Google Interview Question

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