count(distinct) support for single-PK models