Convert data max-count-x to var