Selection counts initially working (however, fails on nesting)