Pharmacy is an odd degree. Although it is a Masters it is still counted as an undergraduate degree. It is a Masters as MPharm stands for Master of Pharmacy. It could be that the first 3 years of Pharmacy is undergraduate as you attain a degree after completing 3 years. The final year of Pharmacy, which is Masters, is Postgraduate as you continue to study after attaining a degree and so Pharmacy can be considered Postgraduate.