If you have a master and a slave or more servers and want to compare the total entries under OpenLDAP type:
ldapsearch -x -b 'dc=mydomain,dc=com' '(objectclass=*)' | egrep " numResponses|numEntries"
You should get from both servers a result like:
# numResponses: 501
# numEntries: 500