Write count_of(items, x) that returns how many times x appears in the list.
count_of(items, x)
x
count_of(['UPI', 'Card', 'UPI'], 'UPI') → 2
count_of([1, 2, 3], 9) → 0
Submit runs 4 tests, including hidden edge cases.
Run your code to see the output here.