add usage example for a shared counter
usage instructions
adds atomic instructions to example for comparison