@step(r'<STR_LIT>')<EOL>def _model_count_step(self, count, model):
model = get_model(model)<EOL>expected = int(count)<EOL>found = model.objects.count()<EOL>assert found == expected, "<STR_LIT>" %(expected, model._meta.verbose_name_plural, found)<EOL>
Count the number of models in the database.

Example:

.. code-block:: gherkin

    Then there should be 0 goals in the database