added a basic code for  count(disinct ...).