Resolve Issue #1

Added a counter to get the right number of results and not crash when there are less than 25 gifs.