octets2i
int octets2i(unsigned char *ptr, size_t n);
hcount = octets2i(ptr, 2);
ucount = octets2i(ptr, 2);