CodeLab Academy 📞 9936 6696
← List Python · Level 5: While loops Code · 50 points ← #432 #434 →

#433. Read until 0: count

Numbers come one on each line. The input ends when the number 0 comes (the 0 is not counted). Find the **count** of the numbers. ### Input Several integers, the last one is 0. There is at least one number before the 0. ### Output The answer.

Examples

Input
44
-24
63
-20
57
58
81
57
87
0
Output
9
Input
75
-8
21
-9
47
-19
48
9
73
0
Output
9

💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!