/* Count the number of each code length for a Huffman tree. */
STATIC VOID CountLen(IN INT32 Index)
/* Count the number of each code length for a Huffman tree. */
STATIC VOID CountLen(IN INT32 Index)
{
  STATIC INT32  Depth = 0;
  if (Index < mN) {
    mLenCnt[(Depth < 16) ? Depth : 16]++;
  } else {
    Depth++;
    CountLen (mLeft[Index]);
    CountLen (mRight[Index]);
    Depth--;
  }
}