Fast counting the cardinality of flows for big traffic over sliding windows