High-speed multiplier design using multi-input counter and compressor circuits