Add `calculate` method for Model.
Use `calculate` method to replace `count`, `avg`, `sum`, `min` and `max` method.