getCounts function signature change issue #11