Add ABI check when importing _counter from block_template