[stats] basic implementation, not linking for the moment