# Template for reading all lines from stdin and printing the line count to stdout.
# Copy this code to your IDE to get started.

from sys import stdin

lines = stdin.readlines()
print(len(lines))