AT_abc473_c [ABC473C] Change Schools

Description

Currently, AtCoder High School has $ K $ classes and $ N $ students, and the $ i $ -th $ (1\le i\le N) $ student belongs to the $ A _ i $ -th class. Takahashi is transferring to AtCoder High School in September. At that time, he can choose any one class among the $ K $ classes and belong to that class. He will be sad if there is a class with more students belonging to it than the class he belongs to. Otherwise, he will be happy. Find how many classes make him happy if he belongs to them.

Input Format

The input is given from Standard Input in the following format: > $ N $ $ K $ $ A _ 1 $ $ A _ 2 $ $ \ldots $ $ A _ N $

Output Format

Output the number of classes satisfying the condition.

Explanation/Hint

### Sample Explanation 1 For example, if Takahashi chooses the fifth class and belongs to it, the number of students belonging to the fifth class becomes $ 3 $ . Then, he will be happy since there is no class with more than three students belonging to it. On the other hand, for example, if he chooses the first class and belongs to it, the number of students belonging to the first class becomes $ 1 $ . Then, he will be sad since three students belong to the third class. He will be happy if and only if he chooses the third, fourth, or fifth class, so output `3`. ### Sample Explanation 2 It is possible that AtCoder High School has only one class. ### Constraints - $ 1\le N\le2\times10 ^ 5 $ - $ 1\le K\le N $ - $ 1\le A _ i\le K\ (1\le i\le N) $ - All input values are integers.