I am trying to build a voting image system, something like this page http://www.9lessons.info/2009/09/fav...-and-ajax.html

However, this is by far too complex for me. I have a image gallery (around 10 images) and I would like that the user could do two things:

1. Vote on the image by pressing a like icon and the total number of likes being displayed.
2. The total number of views of each image.

Any guidance and help is very much appreciated.
Thank you.