# 把串 "10,A,B" 中的 逗号用空串替代, 变成了 "10AB"
# 然后原来串的长度 - 替换之后的串的长度 就是 被替换的 逗号的个数
select (length("10,A,B") - length(replace("10,A,B",",","")))