src/Connections/Ldap.php
public function countEntries($searchResults)
    {
        if ($this->suppressErrors) {
            return @ldap_count_entries($this->getConnection(), $searchResults);
        }

        return ldap_count_entries($this->getConnection(), $searchResults);
    }
public function countEntries($searchResults)
    {
        if ($this->suppressErrors) {
            return @ldap_count_entries($this->getConnection(), $searchResults);
        }

        return ldap_count_entries($this->getConnection(), $searchResults);
    }
public function countEntries ( $ searchResults ) { if ( $ this -> suppressErrors ) { return @ ldap_count_entries ( $ this -> getConnection ( ) , $ searchResults ) ; } return ldap_count_entries ( $ this -> getConnection ( ) , $ searchResults ) ; }
Returns the count of the returned entries
from the specified search results.

@param $searchResults

@return int
Returns the count of the returned entries from the specified search results .