cnt = 0 gets.chomp.split('').each { |e| cnt += 1 if e == '…' } p cnt