in a CSV string is there a way to know how many delimiters there are

for example
first,last,address,city

is there a way to know how many , are in the above string