#include using namespace std; int main(void) { cin.tie(0); ios::sync_with_stdio(false); string s; int res = 0; cin >> s; for(auto it : s) { if(it=='n') res++; } cout << res << '\n'; return 0; }