بسم الله الرحمن الرحيم
(Fatwa: 1353/1239/B=01/1440)
The yellowish discharge which you see will be counted menstrual discharge. Do ghusl after it. However, after completing the days of habit if you are sure that it is leucorrhea then it shall not be counted menstruation. You have to differentiate between menses and leucorrhea in the light of your experience and you should act as per your experience.
Allah knows Best!
Darul Ifta,
Darul Uloom Deoband
