I apologize for the poor formatting but this is coming from my phone...

If fieldset.siblings('fieldset').length > 9
  alert "you reached the maximum number of items"
    Return false