Clarification

Have a small question regarding counting of attempts.

Case1: if a student appears for May25 but fails and appears for Sep25, passes the exam.

Case2: if a student skips may25 due to under confidence abt his preparation and appears for Sep25 with good preparation and confidence and clears in one Go..

So tell me how the counting works w.r.t case1&2.