Dogs will hump, hump, and hump every chance they can get.

They like to show everyone that they're dominant. Mine started humping my feet when he was about 3 months old. After that, I got him a stuffed toy so he could use that instead of my feet. Then I gradually took the toy away and he doesn't do it any more.