LearnPy Hub
← Tuples & Sets problems
Easy

Count in a Tuple

Read integers into a tuple and a number x on the second line. Print how many times x appears with count().

Input

Two lines.

Output

One integer.

Sample 1

Input
1 2 1 3 1
1
Output
3

Sample 2

Input
4 5
6
Output
0
solution.py
Output appears here
Count in a Tuple · Python practice problem · LearnPy Hub