If I understand correctly you have $$\frac {O\times T+N_c}T=N_r$$ yes?
Then, if you are given $N_r,N_c,T$ we get $$O=\frac {N_rT-N_c}T$$
Note: I am not entirely clear on the definition of $T=$ Total Rating. How is it the same even after you add a new rating? Shouldn't it have increased by $1$? Usually when you add a new element to a sample and seek to compute the new average given the old, you take into account that the sample size has increased by $1$.