title: iOS app crashing with -[NSCFString count]: when trying to get count of NSMutableArray if count is only 1
body: <p>I'll keep this short and sweet, because I'm sure it is something simple that I'm missing.  I'm trying to get the count for an NSMutableArray that can contain a variable number of objects (id numbers).  The array is being created from JSon data &amp; the array itself is created perfectly, regardless of whether there is a single object, or a thousand.  </p>
  
  <p>With regards to getting the count, If the array contains more than 1 object, everything works fine &amp; dandy &amp; count is returned successfully.  However, if the array only has a single object/id number... the app crashes with -[NSCFString count]: error.  </p>
  
  <p>Here is the code I am using:</p>
  
  <pre><code>[request setCompletionBlock:^(void)
   {
       NSString *responseCurrent = [request responseString];
       NSMutableArray *json = [responseCurrent JSONValue];
       NSMutableArray *currentList = [[json valueForKeyPath:@"groupTO"] valueForKeyPath:@"currentList"];
  
       NSMutableArray *idNumArr = [[NSMutableArray alloc]init];
       idNumArr = [currentList valueForKey:@"idNumber"];
       debug(@"THIS IS ID ARRAY:  %@",idNumArr);
  
       debug(@"THIS IS COUNT OF THE ID ARRAY:  %@",[idNumArr count]);
  
       //  Ive also tried this to get the count, with no variation in results
  
       //  int countOfidNums = [idNumArr count];
       //  debug(@"count of arr:  %d",countOfidNums); 
  </code></pre>
  
  <p>I need to get this count to implement conditions to deal with other issues that arise from occurrences when this array only contains a single object.</p>
  
  <p>I'm assuming the issue is stemming from the fact that objects in the array are strings, and when there is a single object, it is just coming as a string with no separating commas??? maybe???  help!!!!</p>
  
  <p>ALSO:  not sure if it makes a difference, but I am using ARC.</p>