s = raw_input() ct = 0 for c in s: if c == 'n': ct += 1 print ct