Fixing total_occurrences unlimited value and tested with rspec
Merge pull request #1 from subbaraokly/Fix_total_occurrences_unlimited

Fixing total_occurrences unlimited value and tested with rspec