moved accesscounter increment to getExternalExampleCode