added character frequency counter to ruby examples