implemented countlines; still need to account for comments (comments
should be empty lines)