From my experience, I believe it's based on the second choice (how many times you listen to a song all the way through). However, I don't know for sure, it may be a more complicated formula (percent of song listened to, or some other things like this).