The "not" operator (`!`) usually makes conditionals more confusing to read -- avoid it where possible. "If unique, do the unique word count, otherwise do the normal count" is more straightforward than "If not unique, do the normal count, otherwise do the unique count".