title: Angular how to count numbers of array in array
body: <p>In angular app i need to show the number of arrays which are in arrays.</p>
  
  <p>Example</p>
  
  <pre><code> {
              "city_name": "LAHORE",
              "family_members": [
                  {
                      "user_id": "IGT\/D\/PHI3\/0000000002\/0118\/003-11128",
                      "gender": "F",
                      "name": "IREM NILGUN",
                      "age": "34",
                      "relationship": "Wife"
                  },
                  {
                      "user_id": "IGT\/D\/PHI3\/0000000002\/0118\/003-11129",
                      "gender": "F",
                      "name": "DEFNE ALINA",
                      "age": "4",
                      "relationship": "Daughter"
                  },
                  {
                      "user_id": "IGT\/D\/PHI3\/0000000002\/0118\/003-11130",
                      "gender": "M",
                      "name": "OMER KARAN",
                      "age": "1",
                      "relationship": "Son"
                  }
              ]
          },
          {
              "city_name": "LAHORE",
              "family_members": [
                  {
                      "user_id": "IGT\/D\/PHI3\/0000000002\/0118\/003-5933",
                      "gender": "F",
                      "name": "RAFIA SAQIB",
                      "age": "2",
                      "relationship": "Daughter"
                  },
                  {
                      "user_id": "IGT\/D\/PHI3\/0000000002\/0118\/003-5934",
                      "gender": "M",
                      "name": "MUHAMMAD MAAZ",
                      "age": "10",
                      "relationship": "Son"
                  },
                  {
                      "user_id": "IGT\/D\/PHI3\/0000000002\/0118\/003-5935",
                      "gender": "F",
                      "name": "GULZAREEN SAQIB",
                      "age": "29",
                      "relationship": "Wife"
                  },
                  {
                      "user_id": "IGT\/D\/PHI3\/0000000002\/0118\/003-5936",
                      "gender": "M",
                      "name": "MUSAB SAQIB",
                      "age": "8",
                      "relationship": "Son"
                  }
              ]
          }
  </code></pre>
  
  <p>As there are 2 arrays and in array there is array of family member.
  In first array i have 3 family members and in 2 array i have 4 family members.</p>
  
  <p>I need to count only the family members of array. like the result will be 7 in this.</p>