teradata count occurrences of character in string