If it is simply a flight with an instructor then it must be in a SEP.
If on the other hand it is a Proficiency Check, Flight Test, IR renewal etc with an examminer it counts reghardless og type/class.
eg A 1 hour dual flight with an instructor in a multi will not count. A test of 1 hour+ to renew the multi rating would.
Regards,
DFC