change task depth count to use countbyvalue
drop val from PR feedback
Merge pull request #185 from hammerlab/improve-partition-counting

Change task depth count to use countbyvalue