SELECT
	id,
	LENGTH(string) - LENGTH(replace(string,',', '')) AS cnt
FROM
	strings