Add written bytes count getter