This could be a 'bug' or a 'feature' that could be overcome with a new identifier $countx(text,search) (similar to $replace vs $replacex). Or maybe a .prop for the $count identifier. $count(text,search).incl to include all occurances and $count(text,search).excl to exclude occurances that are within other occurances.

-genius_at_work