Count the number of special character in array