public function count()
    {
        $qb = $this->getLoadQuery()
            ->select('COUNT(' . $this->getAlias() . '.id) as count')
            ->resetQueryParts(['groupBy', 'join'])
        ;
        $result = $qb->execute()->fetchColumn(0);

        return (int) $result;
    }
public function count()
    {
        $qb = $this->getLoadQuery()
            ->select('COUNT(' . $this->getAlias() . '.id) as count')
            ->resetQueryParts(['groupBy', 'join'])
        ;
        $result = $qb->execute()->fetchColumn(0);

        return (int) $result;
    }
public function count ( ) { $ qb = $ this -> getLoadQuery ( ) -> select ( 'COUNT(' . $ this -> getAlias ( ) . '.id) as count' ) -> resetQueryParts ( [ 'groupBy' , 'join' ] ) ; $ result = $ qb -> execute ( ) -> fetchColumn ( 0 ) ; return ( int ) $ result ; }
Return the number of rows used in this repository table.

@return int
Return the number of rows used in this repository table .