Time you spent as student before you apply for asylum counts for citizenship( one day in Canada gives you half day credit). Any time you spent in Canada after you apply and while waiting for your hearing doesn't counts for citizenship even if you had a valid work or studen permit. Any time you spent in Canada from the day you had a positive answer still you landed as PR counts for citizenship.
Thanks...