Fixed sent messages count calculation.