What happens when count attribuet doesn't exist? i think checking existance of next_url might be more reliable...FB blog talks about paging but no 'count' attribute for paging in general: 
https://developers.facebook.com/blog/post/478/