Formula for counting past end/start dates and checkbox left unticked
I'm trying to create a formula to flag if a start/end date is in the past and the started/complete checkboxes haven't been ticked. I have conditional formatting to show this but I want to count how many red flags I have across my sheet and I understand I can't use formulas to count conditional formatting, but I can create a formula taking into account my formula and count that. Please can you help me determine what formula I should be using?
Many thanks in advance,