Refactor Index class into IndexRecord and Index to get rid of all this confusion.
Delete GlobalOccurenceCounts when their count reaches 0