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