Count Occurrence of X

JavaScript Easy 6 views
Back to Questions

Problem Description

Given array and number x, count how many times x appears.

Input Format

Line1: n x. Line2: n integers.

Output Format

One integer count.

Sample Test Case

Input:
8 3 3 1 3 3 2 3 9 3
Output:
5

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next