Added character frequency counter