-spec update_counter(tab(), _Key,
integer()) -> {ok, integer()} |
{error, _}.
Update a counter identified by a key atomically.
If key doesn’t exist, then 0 is assumed as the default. Returns an error if value of the key is not an integer.