Functions include a Key Value Store (kvstore) with many builtin functions. Using the kvstore.incrcounter() function provides a robust, distributed computing safe technique to keep a mostly accurate count of any event: candidate or ballot votes, client or server analytics, or any other event that has to have a counting metric from a distributed set of contributing endpoints (voters from many devices, for example).
For more details, see the Functions documentation on KV Store Counter function.