Understanding of NST concept

hii i am not able to understood the conept of NST here .
I mean how nst is circulating here and how the concept of NST form and how we are using this i m not understanding …

for (nst = n-row; nst>= 0; nst- -)

nst just signifies the number of star we want to print in a row
it starts with n stars so we could say nst=n
but our stars keep decrementing with a pattern .we observe that the stars decrement equal to the row number
like 1st row has n-i==5-0 =5 stars and 2nd gets 5-1(i) stars and so on
so we start from n-row and go decrementing till nst remains positive