From Psa 119 "Seven times a day do I praise thee because of thy righteous judgments." Seems to fit with the perfection meaning.