changed the main code to use the word counts data instead of original presence data