Rewrite this pseudocode so that, instead of indicating whether or not the target was found in the list, the output is the number of occurrences of the target. For instance, if list were {8, 3, 5, 1, 3, 9, 2, 8, 3, 3} and target were 3, then the output should be 4, since the number 3 occurs four times in the list.