Feel free to ignore this one (it just saves 2 lines):

```python
if self.predictions:
  return 1 + self.predictions[-1]['order']
return 0
```