I've done this little function to count how many taggable friends I have when someone log into my app.

```
function testAPI() {
FB.api('/me/taggable_friends', function(response) {
  var friendsICT = response.data;
  var HowManyFriends = 0;
  for (i=0;i<5000;i++) {
    if (friendsICT[i] != undefined) {
        HowManyFriends++;
    } else {
        console.log(HowManyFriends);
        break;
    };
  };
});
}

```

I was just wondering if there's some way to do this in a shorted code.
I've tried response.data.length but it gives me back an error. Maybe it's just because of the API 2.0!