For MD, 2 years of pre pharm and P1-P2 count towards the gpa. True pharmacy courses are also not counted as science. If you have a bachelors none of pharmacy school will count towards your amcas gpa. For DO all of your years count towards your gpa, and true pharmacy courses count as science. The same goes though if you have a bachelors already that none of pharmacy school will count in your main gpa.
So up until the late 90s/early 2000s a 5 year bachelors of pharmacy was the main degree. After this when you were licensed you became a RPH for registered pharmacist. Now you get a doctorate (like many healthcare professions moving towards a doctorate to sound fancy) and you graduate with the PharmD. You technically are not a RPH though until you are licensed in a state. The hilarious thing is the schools I mentioned told me they would accept a bachelors of pharmacy, just not a Pharm D as "it is not a bachelors"
.