upon scribbling down those last few words , he stood up and handed his paper to the moustache , who counted the words , and finding the essay to contain the proper amount , deemed that both of our protagonists had passed , and that all the rewards owed to them would be granted .