Transaction-safe hostgroup counter for templates
Users cannot assign sequence numbers to hostnames or other artifacts during provisioning. Initially I was thinking storing these into global settings, but hostgroups seem to be better place because then they can be easily accessed by users. Also users can create multiple sequences per hostgroup. Also it supports number casting.