helper: introduce get_param_num_from_sym()