Validates a configuration file format by enforcing the number of times specific keys must appear.