count encode statiistic