Question: what are the number of groups for judgment 2 or 3?
In verse 56:7 it is three and in verses 90:18 and 90:19 they are only two:
56:7 And ye shall be sorted out into three classes. وَكُنتُمْ أَزْوَاجًا ثَلَاثَةً
56:8 Then (there will be) the Companions of the Right Hand;- What will be the Companions of the Right Hand? فَأَصْحَابُ الْمَيْمَنَةِ مَا أَصْحَابُ الْمَيْمَنَةِ
56:9 And the Companions of the Left Hand,- what will be the Companions of the Left Hand? وَأَصْحَابُ الْمَشْأَمَةِ مَا أَصْحَابُ الْمَشْأَمَةِ
56:10 And those Foremost (in Faith) will be Foremost (in the Hereafter). وَالسَّابِقُونَ السَّابِقُونَ
56:11 These will be those Nearest to Allah. أُوْلَئِكَ الْمُقَرَّبُونَ
56:12 In Gardens of Bliss: فِي جَنَّاتِ النَّعِيمِ
90:17 Then will he be of those who believe, and enjoin patience, (constancy, and self-restraint), and enjoin deeds of kindness and compassion. ثُمَّ كَانَ مِنَ الَّذِينَ آمَنُوا وَتَوَاصَوْا بِالصَّبْرِ وَتَوَاصَوْا بِالْمَرْحَمَةِ
90:18 Such are the Companions of the Right Hand. أُوْلَئِكَ أَصْحَابُ الْمَيْمَنَةِ
90:19 But those who reject Our Signs, they are the (unhappy) Companions of the Left Hand. وَالَّذِينَ كَفَرُوا بِآيَاتِنَا هُمْ أَصْحَابُ الْمَشْأَمَةِ
Answer: Verses 90:18 and 90:19 are defining who are the Companions of the right hand and of the left hand, and not counting the total number of groups for judgment. While verse 56:7 is counting all the groups.