Firstly why didn't you just ask your instructor rather than an anonymous board?
Secondly, yes as long as you were indeed sole manipulator of the controls, it doesn't matter who was P1.
The law is the three take off and landings in the last 90 days (touch and gos will do) but most flying clubs won't hire an aircraft to you if you haven't flown in the last 28 days.