Use a dictionary to count the frequency of numbers in the given “text” string. Only numbers should be counted. Do not count blank spaces, letters, or punctuation. Complete the function so that input like "1001000111101" will return a dictionary that holds the count of each number that occurs in the string {'1': 7, '0': 6}. This function should:
accept a string “text” variable through the function’s parameters;
initialize an new dictionary;
iterate over each text character to check if the character is a number’
count the frequency of numbers in the input string, ignoring all other characters;
populate the new dictionary with the numbers as keys, ensuring each key is unique, and assign the value for each key with the count of that number;
return the new dictionary.