وَرَكْعَتَيْنِ بَعْدَ الْمَغْرِبِ، وَأَرْبَعًا قَبْلَ الْعِشَاءِ وَأَرْبَعًا بَعْدَهَا، وَإِنْ شَاءَ رَكْعَتَيْنِ.
Translation: Two rakahs after Maghrib, four before Isha, and four after Isha; or two, if one wishes.
Two rakahs after Maghrib are an emphasized Sunnah. The four rakahs before Isha are recommended rather than emphasized in the same way.
After Isha, four rakahs are allowed, while the text explicitly permits two. Witr is a separate prayer after Isha and is not identical in status to the attached Sunnah prayers.