map char count works