#C7687. Serve Tickets

    ID: 51585 Type: Default 1000ms 256MiB

Serve Tickets

Serve Tickets

You are given a queue of people waiting to purchase tickets. Each person in the queue has a certain amount of money. A ticket costs \(T\) dollars.

A person will purchase a ticket if and only if the exact amount of money they have is equal to \(T\). Your task is to determine the total number of tickets sold.

Note: Only those people whose amount exactly matches \(T\) will buy a ticket.

inputFormat

The input is read from standard input (stdin) and consists of two lines. The first line contains two space-separated integers \(n\) and \(T\), where \(n\) is the number of people in the queue and \(T\) is the ticket price. The second line contains \(n\) space-separated integers representing the amount of money each person has.

Example:

5 5
5 10 5 20 15

outputFormat

Output a single integer to standard output (stdout) representing the total number of tickets sold.

Example:

2
## sample
4 5
5 5 5 5
4