Twitter Api 1.1 GET粉丝/ ids计数不起作用

$cursor = -1;
$limit = 5;
while($cursor != 0){
    $parameters = array('screen_name' => $q, 'cursor' => $cursor , 'count' => $limit);
    $method = "followers/ids";
    $response2 = $connection->get($method, $parameters);
    $followerlist = array_merge($followerlist,$response2->ids);
    $cursor = $response2->next_cursor;

}

I did a limit of 5, but it gave me the all of followers id... if the user has 20 followers it gives me the 20 ids but I need only 5. I gave a count parameter of 5 but it seems to ignore it. What am I doing wrong?

If you just need only 5 results a time,there is no need of a while loop.Just specify 'count' => 5