TODO: Count invocations.