Another simple character counter