I recently got Magmortar and Electivire from PBR by entering the corresponding code and received them on my Platinum. Do they count as mine?
No, they count as yours because you recieved the pokemon in-game, at this point it is yours, and then you transfered it to Platinum. The pokemon are yours once you got the pokemon on PBR.
Hop this helps!