some dummy content ${config1.first.placeholder}. other context on same line ${config1.second.placeholder}

no need to count! There are in total 5 unique placeholders:
config1.first.placeholder
config1.second.placeholder
config1.third.placeholder
config1.duplicate.placeholder
config1.last.placeholder