How many openings do I need to know?
For most players, one White opening, one reply to 1.e4 and one to 1.d4 already form a working repertoire. Expanding comes later, guided by the positions that showed up in your games.
Should I build the repertoire from the statistics?
Statistics show what is played and help pick what to cover first, but they do not say what suits you. Use the explorer's Lichess database in your rating band to see what really shows up against you.
Can I have separate repertoires for White and Black?
Yes. Each repertoire has a color, and you switch between them in the top selector. Up to 30 repertoires can be stored, each with its own progress.