Describe an algorithm using pseudocode as discussed in class that takes a list of n
integers a₁, a₂, ..., aₙ, and returns the number of times that a single digit 2 (as opposed to 12, 22, etc) occurs in the list. Be sure to initialize the variables.
Hint: the initial value of the counter should be 0.