All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad is His slave and Messenger.
Tasbeeh (saying Subhana Allah) in the prayer of Tasbeeh is not obligatory. So whoever leaves it or leaves a number of Tasbeeh, does not have to do anything to compensate for that and his prayer is valid, and he does not have to perform prostrations of forgetfulness. He does not also have to pray this prayer again.
Ibn Hajar said in his Fataawa: “Tasbeeh in this prayer takes the ruling of Takbeer in the ‘Eed prayers. So the praying person does not have to prostrate for forgetting any of them (Tasbeeh or Takbeer) even if he initially intended a given number and did not fulfill it. His prayer is valid.”
Allah knows best.