The experience sampling or daily diary method is one way that psychologists attempt to scientifically measure thoughts.
One research team at Ohio State University tried to figure out how often people think about sex by using so-called "clickers", asking the 283 college students to click each time they thought about sex, food, or sleep (there were three groups of students).