public function searchContentfulEntriesCount(string $searchText, ?Client $client = null): int
    {
        $client = $client ?? $this->defaultClient;

        $query = new Query();
        $query->where('query', $searchText);

        return count($client->getEntries($query));
    }
public function searchContentfulEntriesCount(string $searchText, ?Client $client = null): int
    {
        $client = $client ?? $this->defaultClient;

        $query = new Query();
        $query->where('query', $searchText);

        return count($client->getEntries($query));
    }
public function searchContentfulEntriesCount ( string $ searchText , ? Client $ client = null ) : int { $ client = $ client ?? $ this -> defaultClient ; $ query = new Query ( ) ; $ query -> where ( 'query' , $ searchText ) ; return count ( $ client -> getEntries ( $ query ) ) ; }
Returns the count of searched Contentful entries.
Returns the count of searched Contentful entries .