It depends on what ordination route you are taking and the degree program. I know that United Theological in Dayton, OH has a degree program for people wishing to become ordained and become a Hospital/Hospice Chaplain. I know Deacons don't have to take any pastoral counseling classes. I'm not sure about Elders who are pursuing an MDIV
There is usually some sort of pastoral counseling/pastoral care type of class. I remember my pastor telling me a few years ago that he even chose to specialize in pastoral care when in seminary. Naturally, not everyone is going to put as much focus on it, but they will get at least some instruction in it at some point.
The Master of Divinity in most seminaries only has a smattering of counseling instruction. I am always careful never to claim to be a pastoral counseling, which is a different degree track. Pastors are now much more encourage to refer people to trained qualified counselors.