specialize count_bytes