Limit fetched commit number