I would like to know how to get the number of occurances of a specific character within a string.

For ex. var str = "Name;Title;Year;Author;Rating"
How do I get the number of times that the ";" appears in that string.

Thanks in advance.