Add stat/2 callback for retrieving individual stats.

This will allow us to configure specific stats to be tracked in KV, and only extract those stats we want.