Add word_count attribute to ram.