Under construction

Still being built. Things may change

Counting Lines

Time limit1sMemory limit128 MB

Summary
Read all input lines, including empty ones, and print how many there are.
Level

Easy1 of 10

Topics
Implementation, String
Solved
No attempts yet

Problem

Write a program that counts the number of lines given as input.

Input

Several lines are given as input. Each line consists of at most 100 characters. Empty lines may be included.

Output

Print the number of lines given as input.

Examples1

  1. Example 1

    Input
    one
    and two
    three
    
    Expected output
    3