Document replacement stats API

[ci skip]