Add maxcount option in limits template

We're being affected by SPL-58112 detailed in http://docs.splunk.com/Documentation/Splunk/5.0.2/ReleaseNotes/KnownIssues

I've added an optional attribute to allow this value to be tweaked