get count of character in string jquery example