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

Fixing total_occurrences unlimited value and tested with rspec