Problem and Official Solution

The user input consists of positive integers. A negative number or \(0\) is a sign that the input is over. Create the program that reads the numbers from the user input and counts the total number of elements from the input that appear odd number of times.