How can I find out how many "-" are in a string?