Implement count leading zeros (ctlz), count trailing zeros (cttz), and count