Counts lines of code in Java, excluding comments.