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.