# -*- coding: utf-8 -*- semi_str = input() print(len(semi_str.split("n")) - 1)