You select the online mode directly before the game starts, after tapping the "Play Online" button. 


In offline mode the number of opponents is set via the settings. You can find them by opening the menu (the three horizontal lines) in the upper left corner.