Restore the use of ZCARD for better performance.