text of the task
Entries are integers while zero is inputted. Write a program that shows how the entered numbers, excluding zero.
entrance
Each line of input except the last, contains an integer different from zero. The last line contains a zero.
Exit
In the standard output in the first line to show how much is loaded numbers, excluding zero.
example 1
input
5
12
-5
675
-123
0
output
5