Help me in solving ARRY5V2 problem

My issue

i want the detail explanation of displaying the count of elements

My code

#include <bits/stdc++.h>
using namespace std;

int main() {




  return 0;
}

Learning course: Learn C++
Problem Link: CodeChef: Practical coding for everyone