Problem Description

Count how many lines are in stdin using streams.

Input Format

stdin: text.

Output Format

Print integer lines.

Sample Test Case

Input:
a\ b\
Output:
2

Constraints

Handle last line without newline.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next