modifiy users count query taking into account the enabled flag