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

lines = []
while line = gets
    lines << line
end
puts lines.length
