Salam,
It has 11 rakat in total.
It begins with 8 rakat nafl (4 prayers of 2 rakat each, just like the fajr prayers).
Then 2 rakat shifa (Fatiha+Ikhlas+Nas in first raka, Fatiha+Ikhlas+Falaq in second raka, no qunoot, rest everything as a normal 2 unit prayer).
Then 1 raka witr. This one is a bit complicated but I'll try to simply as much as possible-
1. In the qiyam (recitation), recite Fatiha 1×, Ikhlas 3×, Falaq 1×, Nas 1×.
2. The Qunoot is the longest part of this prayer.
In the Qunoot, first say any dua as you please.
Then say 'Astaghfirullahi rabbi wa atubu ilaih' 70 times.
Then pray for forgiveness of 40 people, dead or alive ('Allahummaghfirli', followed by their names).
Then say 7 times 'hadha maqaamul aa'idhi bika min nar'.
Then repeat 'al-afwa' 300 times.
Then say 'rabbighfirli, warhamni, wa tub alayya, innaka antat tawwaburraheem' once.
3. Then go to ruku', then the sujud, and then complete the prayer normally with tashahhud and taslim.
NOTE: You do not have to pray all the 11 rakat, you can even begin with praying just the witr, and then go on increasing.
Barakillah.