Adding wordCount to final output