private int huffman_coder_count1( int tableindex ) {
		int huffbits;
		int signv, signw, signx, signy, p = 0;
		int len;
		int totalBits = 0;

		signv = (v > 0)? 0: 1;
		signw = (w > 0)? 0: 1;
		signx = (x > 0)? 0: 1;
		signy = (y > 0)? 0: 1;
		//        if(v < 0) v = -v;
		//        if(w < 0) w = -w;
		//        if(x < 0) x = -x;
		//        if(y < 0) y = -y;
		v = Math.abs(v);
		w = Math.abs(w);
		x = Math.abs(x);
		y = Math.abs(y);

		p = v + (w << 1) + (x << 2) + (y << 3);

		huffbits = table[tableindex][p];
		len = hlen[tableindex][ p ];
		mn.add_entry( huffbits, len );
		totalBits += len;
		if ( v != 0 ) {
			mn.add_entry( signv, 1 );
			totalBits += 1;
		}
		if ( w != 0 ) {
			mn.add_entry( signw, 1 );
			totalBits += 1;
		}

		if ( x != 0 ) {
			mn.add_entry( signx, 1 );
			totalBits += 1;
		}
		if ( y != 0 ) {
			mn.add_entry( signy, 1 );
			totalBits += 1;
		}
		return totalBits;
	}