count character using ranges add