count number of special characters in a string java