Add maxcount option in limits template