return [_steps count] + (_editable ? 1 : 0); for simplicity. Alternatively, for readability you can create a method called [self editableRowCount] or something.