Skip to main content
Add the following to myaddon/__init__.py in your add-ons folder:
Restart Anki, and you should find a ‘test’ item in the tools menu. Running it will display a dialog with the card count. If you make a mistake when entering in the plugin, Anki will show an error message on startup indicating where the problem is.