feat(count): Add count to variable instance query

related to CAM-940