Subtraction of power counting breaking terms in chiral perturbation theory: spinless matter fields