I currently use the code below to count the number of paragraphs in a certain area (in this case my "suppliers" area).
int adverts = Paragraph.GetParagraphsByPageID(PageView.Current().Page.ID).FindAll(par => "suppliers".Equals(par.Container) && par.ShowParagraph).Count;
This counts all the active paragraphs in the area just fine, but if I set the publication period and the item has passed the expiry date, it still counts as an active paragraph.
How can I count the "real" active paragraphs and not the ones that has expired?