GameObjects in the scene

Is there any way to get the amount of active GameObjects currently in the scene?

Have a look at this:

Look at the answer following the one marked as best answer though.

That solved it, thx.