Somerset opener Nick Compton responded to his England omission with an innings of 81 against Australia before the tourists fought back on day one.