#include main(){int cnt=0;char c=1;while(c!=EOF){if(c=='n')cnt++;c=getchar();}printf("%d\n",cnt);}