count bytes rather than chars