pymead.utils.misc.count_dollar_signs#

count_dollar_signs(input_string: str, search_for_character: str)[source]#

Counts the number of dollar signs in input_string. Useful for counting the number of dynamically-linked variables in a user-defined equation, since these are defined by pre-pending the dollar symbol.