correct initialization of target-word counts, fixed defaultValue in SafeHash