I feel this functionality might be better off being shifted to the count() function — that way the parser is relatively agnostic. Might need a pretty extensive refactor in order to enable that, though — I'll keep thinking about how best to do it.