I know how to get the frame rate but how do I get the rendered frames?
I don't understand your question, could you clarify? Do you mean getting the number of rendered frames?
Yes.