def count_sprintf_parameters(string):
 return len(_sprintf_placeholder_re.findall(string))

def count_sprintf_parameters ( string ) : return len ( _sprintf_placeholder_re . findall ( string ) )
counts the number of sprintf parameters in a string .