src/Sulu/Component/Rest/Listing/ListQueryBuilder.php
public function justCount($countAttribute = 'u.id', $alias = 'totalcount')
    {
        $this->countQuery = true;
        $this->replaceSelect = 'COUNT(' . $countAttribute . ') as ' . $alias;
    }
public function justCount($countAttribute = 'u.id', $alias = 'totalcount')
    {
        $this->countQuery = true;
        $this->replaceSelect = 'COUNT(' . $countAttribute . ') as ' . $alias;
    }
public function justCount ( $ countAttribute = 'u.id' , $ alias = 'totalcount' ) { $ this -> countQuery = true ; $ this -> replaceSelect = 'COUNT(' . $ countAttribute . ') as ' . $ alias ; }
just return count.
just return count .