Models trained on large data sets of seismic events can estimate the number of aftershocks better than conventional models do.