Removed hardcoded commits limit

Replaced hardcoded commits limit with comparison of old saved number of
commits to new number of commits.  After the comparison, the hidden file
gets over written with the new value.