nitgs: add option --invocation-metrics to count things dynamically

Signed-off-by: Jean Privat <jean@pryen.org>