service: add attribute for number of invocations