HealthPlix interview question

Write code to count number of lines.