I am doing a code where the recursion function count the number of zero in an array, but the recursive function did not work well. What is wrong with my code, some1 help me, thank you.Code:#include <iostream> using namespace std; int countZero(int a[], int count); void main(void) { int size = 10; int Myarray[10] = {6, 0, 0, 7, 9, 3, 8, 2, 1, 8}; cout << "The numbers of zero in the array is " ; cout << countZero(Myarray, size); cout << endl; system ("pause"); } int countZero(int a[], int count) { int s = 0; if (count == 1) { if (a[count] == 0) { s ++; } else { countZero(a, count - 1); } } else { countZero(a, count - 1); } return s; }