Script to count total number of white space characters in a string