I have a JSON webservice in the following format.
 { Name:['a','b'], Name:['cd','ef'], Age:{...}, Address:{...} }. 
Here I have 2 arrays & 2 objects inside an object and these (array & objects) numbers may vary. What I need is, how can I get the number of Arrays alone from the main Object? There may exist another way to solve my problem but I need my code to be in a .JS (javascript file).
When I tried: 
Object.keys(mainobject).length; 
It gives total count of array + objects in main object.
 
     
     
     
    