Count Ids.