Added variable that keeps track of total items to paginate.  This allows the script to know whether or not to append the Show buttons.  Solves issue #2