def _get_num_contracts(contracts_list, param_name):
msg = "<STR_LIT>"<EOL>return sum(<EOL>[<EOL><NUM_LIT:1> if item["<STR_LIT>"] == msg.replace("<STR_LIT>", param_name) else <NUM_LIT:0><EOL>for item in contracts_list<EOL>]<EOL>)<EOL>
Return the number of simple/default contracts.

Simple contracts are the ones which raise a RuntimeError with message
'Argument `*[argument_name]*` is not valid'