How does the program accumulate the total counts for each number that is found?

One problem I see with the code is missing {}s. You should always use {}s with loops and if statements to make sure...