Tweaked some code and added a FlickrData class that holds photos and total count.