create initialize and word_count method