Moved expandCounts() to FSA, deleted it here.