Package stats defines a lightweight interface for collecting statistics.