count char  of selected test