Count Element

Easy

📝 Description

Count occurrences of element in list

Input Format

First line: list Second line: element to count

Output Format

Count of element

Constraints

List size ≤ 1000

🔍 Sample Input

1 2 3 2 4 2
2
            

✅ Sample Output

3
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run