I really don't understand how to scan a poem for iambic pentameter. Help!!

Here are some examples:

http://server.riverdale.k12.or.us/~bblack/meter.html
and
http://owl.english.purdue.edu/owl/resource/570/02/

Information about different meters:
http://www.uncg.edu/~htkirbys/meters.htm