Jeremy Bentham was a philosopher that was best known his beliefs in right and wrong being judged by the amount of happiness in a person. He had an optimistic outlook on many pressing issues at the time he was alive, as he wanted to abolish slavery, outlaw the death penalty, and do away with physical punishment.
The answer that would best fit this description of Bentham is "laws should be judged by whether they bring more pleasure than pain".