adding unique count functions