I've had good success with David Wheeler's SLOCCount. It's a command line tool, which will require Cygwin unfortunately, but I found it handled very large Java projects without fuss. C# is listed as a supported language for counting. Configuration is minimal, IIRC I just pointed it at a directory and it summarised all the type of code and broke it down in lines per language.
Highly recommended.