I wish to count the number of objects returned from a query (but I do not need the actual objects themselves) from Sun Java System Directory Server 5.2.
E.g., if I want to find all people with surname Smith, I would want something like
ldapsearch -LLL -H ldaps://example.com -b "ou=people,dc=example,dc=com" "sn=Smith"
but with some sort of count. Is this possible without returning all of the results?