counterd is a persistent, durable, centralised counter service with a simple, efficient binary protocol. It exists specifically to support the use case of a counter with built in time-to-live logic for updates.
3-clause BSD. A copy is included with the source.