public function countNumberOfUserInSearch($searchString = null)
    {
        $builder = $this->buildUserSearchQuery($searchString);

        return $builder->select($builder->expr()->count('u.id'))
            ->getQuery()
            ->getSingleScalarResult();
    }
public function countNumberOfUserInSearch($searchString = null)
    {
        $builder = $this->buildUserSearchQuery($searchString);

        return $builder->select($builder->expr()->count('u.id'))
            ->getQuery()
            ->getSingleScalarResult();
    }
public function countNumberOfUserInSearch ( $ searchString = null ) { $ builder = $ this -> buildUserSearchQuery ( $ searchString ) ; return $ builder -> select ( $ builder -> expr ( ) -> count ( 'u.id' ) ) -> getQuery ( ) -> getSingleScalarResult ( ) ; }
Counts the number of users in the search

@param string $searchString
@return mixed
Counts the number of users in the search