counter: add support for user specified initial counter values