Get the number of sessions for a user that are graphical and on the same seat as the session of the calling process.
a user
the number of sessions