I could not find anything stating you have to be counseled specifically for an APFT failure prior to attending school. However when you fail an APFT you should be counseled in accordance with AR 600-8-2 within 2 working days of the flag being initiated. So at a minimum you should have been counseled for the initiation of the flag.
To specifically address your question ATP 6-22.1 para 1-6 simply states the counseling should occur as close as possible to the event.
Based on my research there is no specific time frame or requirement to counsel you for the APFT failure. In my experience this requirement is usually a local policy