How to get number of found sessions ?!

i am creating a multiplayer battle royale game and i would like to know how to get the number of founds sessions as i am thinking of creating only one button for starting game “Like fortnite Matchmaking System for Example” so when “Find Sessions” returns zero it would directly go for creating a session