count distinct function added