Added new function to read in counter for name creation