eDir-Count, or Count.exe is a C# program using the LDAP csharp libraries from Novell Development.
I highly recommend coding in C# due to the amount of methods available publically. Your code will run on Windows and Linux.
This is my first c# application I have released to the public.
Download it here: http://www.novell.com/communities/node/6940/edir-count
Feel free to contact me at firstname.lastname@example.org.
Disclaimer: As with everything else at NetIQ Cool Solutions, this content is definitely not supported by NetIQ, so Customer Support will not be able to help you if it has any adverse effect on your environment. It just worked for at least one person, and perhaps it will be useful for you too. Be sure to test in a non-production environment.