swapped SCARD for ZCARD since we are now using sorted sets for indexes