extracting number of pages containing posts for a single subject