javascript count characters in string