Towards the end of Harry Potter and the Chamber of Secrets Professor McGonagall says that Harry and Ron broke "a hundred school rules".
“Very well,” Professor McGonagall prompted him as he paused, “so you found out where the entrance was — breaking a hundred school rules into pieces along the way, I might add —"