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-c...
Feel free to contact me at firstname.lastname@example.org.
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.