Count characters excluding white space