#include<iostream>
#include<string>
using namespace std;
template <typename T> int getArrayLen(T& array)
{
static int j = 0;
cout <<"language = "<<array[j] <<endl;
j++;
return (sizeof(array) / sizeof(array[0]));
}
int main()
{
string language[] = {"CH","GB","ID"};
for(int i = 0;i < 3;i++){
int a = getArrayLen(language);
cout <<"language size is: "<< a <<endl;
}
return 0;
}