#include <iostream>
#include <algorithm>
#include <iterator>
using namespace std;
int main()
{
int array[]= {1,1,2,3,4,1,3,2,9,8,7};
int num = 1;
unsigned int cnt = count(begin(array), end(array), num);
cout << "The number " << num << " appears " << cnt << " times\n";
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8YWxnb3JpdGhtPgojaW5jbHVkZSA8aXRlcmF0b3I+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CmludCBtYWluKCkKewogICAgaW50IGFycmF5W109IHsxLDEsMiwzLDQsMSwzLDIsOSw4LDd9OwogICAgaW50IG51bSA9IDE7CiAgICB1bnNpZ25lZCBpbnQgY250ID0gY291bnQoYmVnaW4oYXJyYXkpLCBlbmQoYXJyYXkpLCBudW0pOwogICAgY291dCA8PCAiVGhlIG51bWJlciAiIDw8IG51bSA8PCAiIGFwcGVhcnMgIiA8PCBjbnQgPDwgIiB0aW1lc1xuIjsKfQo=