Fix generate_numbered_unique_names() to respect the counter argument. Closes #1 See merge request !10