Walmart interview question

Write a program to count the number of lines in a java program