Finished implementing the occurrence metric. Running tests now.
Occurrence measure seems to be working. Tested, but not thoroughly.