Hence if your employer gave you time off for maternity but you kept your job for you to return to, then your maternity leave counts as experience. If you quit completely but then came back then it does not count. I guess it will because you were not actively working during this period.