# tr maps characters one-to-one puts "hello".tr("el", "ip") # count tallies matching characters puts "mississippi".count("s")
map and tally characters