What about `count('DISTINCT id`)`?