Adding getArticleCount Function