Add revision counter to object APIs.