i=0 gets.gsub(/mi-*n/){i+=1} p i