[MONDRIAN-1943] improvements to native count.  Better support for nonempty
and empty contexts, added unit tests, verified support for AllMember and
Children.