add interface and basic implementaion and UT for EncoderStatistics
Merge pull request #1429 from sijchen/add_statistics1

[Encoder] add EncoderStatistics