FEATURE: count bytes to pad