Bug fix of from v3 XML expanding to $Count

This bug fix was from @jakxx