Granular counting of uncertain data