The Hanafi sequence uses three extra takbirs before recitation in the first rak‘ah and three after recitation in the second, reflecting reports of Companion practice including that of Ibn Mas‘ud.
Other schools have different counts based on their preferred reports. The difference concerns the transmitted ritual sequence.