[RFC PATCH 4/5] plugins: add call counters