Max count is now a variable