Hello! I have a problem with a c++ program. It's about to find the unique values in an array and to copy the in another array and also to count how many times each value is met in the first array. I would be very appreciated if you help meMy problem is how to count how many times each value is met.Code:#include<iostream> using namespace std; void main() { int a[5]; int b[5]; int p; int i; for (p=0; p<5; p++){ cout<<"Enter the numbers "; cin>>a[p]; } int flag=1; int temp; int j; for(i = 0; (i <5) && flag; i++) { flag = 0; for (j=0; j < 4; j++) { if (a[j+1] < a[j]) { temp = a[j]; a[j] = a[j+1]; a[j+1] = temp; flag = 1; } } } int br=0; for(p=1;p<5;p++) { if(a[p]==a[p-1]) { br++; } } b[0]=a[0]; int d,m=1; for(d=1;d<5;d++) { if(a[d]!=a[d-1]) { b[m]=a[d]; m++; } } cout<<"The numbers are"<<b[0]; for(i=1;i<m;i++) cout<<b[i]; cout<<"The number is: "<<br; }