Using JavaScript:

What is the function that I can use to calculate how many string found in the string..

if Text="how are you . I hope you are fine"

I want to know how many (are) string in this string

output Here:
2