Implemented operators for count distinct three stages.