Counting results displayed
<p>I would like to know how to count how many people follows someone in Instagram and place the number in a var, Instagram gives you this link:</p>

<pre><code>https://api.instagram.com/v1/users/3/followed-by?access_token=xxxxxxxxx.xxxxxxxxxxxxxxxxxxxx
</code></pre>

<p>And displays a result like so</p>

<pre><code>{
    "data": [{
        "username": "meeker",
        "first_name": "Tom",
        "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_6623_75sq.jpg",
        "id": "6623",
        "last_name": "Meeker"
    },
    {
        "username": "Mark",
        "first_name": "Mark",
        "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_29648_75sq_1294520029.jpg",
        "id": "29648",
        "last_name": "Shin"
    },
    {
        "username": "nancy",
        "first_name": "Nancy",
        "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_13096_75sq_1286441317.jpg",
        "id": "13096",
        "last_name": "Smith"
    }]
}
</code></pre>

<p>How can I count how many are there and place it in a var, lets say: </p>

<pre><code>&lt;? echo "You are been follow by ".$followers." users!"; ?&gt;
</code></pre>

<p>To display: You are been follow by 3 users!</p>
