searchDocuments also counts search

The array returned by searchDocuments (array[0=>$doc1, 1=>$doc2,...))
now also has a count entry and looks like this: array(0=>$doc1,
1=>$doc2,...,"count"=>$count).
it counts the total number of documents matching the query as if there
were no limit.