It enough to ``return $query->execute()->rowCount();``