Implemented a story count function. Extracted story.set() calls to a
rsToStory function.