I have a range of letters in an array:

```
$myRange = range("a","c");

```

I want to count how many times the letters in this range appear in a string:

```
$str = "abcdefg";

```

Is there a way I could use `substr_count()` to achieve this?

Eg: `substr_count($str, $myRange);` 

I could use a foreach loop, but that seems overkill and not as elegant. Are loops the only way?