jquery count number of specific characters in string