Config Generation Prep Work

Psedo-code algorithms, counting methods, etc in preparation for
configuration generation coding.