score:6
Presuming your entire itinerary (YYZ-BOS-DXB-KHI) has been booked on a single ticket, you should not need to reclaim your bags in Boston. When checking in at Toronto, your bags should be checked through to KHI; check the tag and your claim receipt to make sure this is the case.
YYZ is a pre-clearance airport, so you will go through the formalities of entering the United States in Toronto before departure, rather than after your arrival at BOS. Therefore, unlike travelers arriving at BOS from a non-pre-clearance airport, you will not normally need to reclaim your bags to go through customs screening, and should not need to reclaim them until you arrive at KHI.
You will still need to get yourself from Terminal A, where your WestJet flight should arrive, to Terminal E, where your Emirates flight should depart, and this does involve exiting the secure area and taking one of the free interterminal shuttle buses.