So basically i just want to count how many game object are there in my scene.
Is there any special built in function ?
This should work:
GameObject.FindObjectsOfType(typeof(MonoBehaviour)); //returns Object[]
See here for other solutions: How to get all GameObjects in Scene? - Unity Answers.