Add max amount to the tags input

I created a setting for the maxAmount in the config settings for the function. The default value is false so no limit is required when not configured.