print number of distinct values on client side