In the granite steps of Stonehallow, Kian the customs officer keeps careful count of the parcels. optimize the storeroom layout, every figure matters. Task: Read n integers and a target x; print how many times x occurs. Input format: First line: n and x. Second line: n space-separated integers. Output format: Print the number of occurrences of x. Constraints: 1 <= n <= 26; -100 <= a[i],x <= 1000000000.
Example 1:
Example 2:
Example 3:
Constraints:
1 <= n <= 26; -100 <= a[i],x <= 1000000000.
