basic statistics, encoder constructors with statistics