بسم الله الرحمن الرحيم
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 Uloom Deoband
This answer was collected from the official ifta website of Darul Uloom Deoband in India.