Remove any havings before doing the Doctrine count