Octet counting