text: #include<iostream>
  #include<vector>
  #include<string>
  #include<algorithm>
  
  using namespace std;
  
  class StrLenIs
  {
  public:
  	StrLenIs(int len) : len(len) {}
  	bool operator() (const string &str) {return str.length() == len;}
  
  private:
  	int len;
  };
  
  void readStr(istream &is, vector<string> &vec)
  {
  	string word;
  	while(is >> word)
  	{
  		vec.push_back(word);
  	}
  }
  
  int main()
  {
  	vector<string> vec;
  	readStr(cin, vec);
  	const int minlen = 1;
  	const int maxlen = 10;
  	for(int i = minlen; i <= maxlen; i++)
  	{
  		StrLenIs slenIs(i);
  		cout << "len: " << i << ", cnt : " << count_if(vec.begin(), vec.end(), slenIs) << endl;
  	}
  	
  	return 0;
  }
  