C++ boost library that counts each character type in a string code example Example: count a character in a string c++ count(str.begin(), str.end(), 'e')