#include using namespace std; using pint = pair< int, int >; int main() { string s {}; cin >> s; cout << count( begin( s ), end( s ), 'n' ) << endl; }