def test_tag_updates_count(self) -> None:
        """Test that the count of a tag is updated when a tag is added
        to an observable."""
        tag = Tag(name="test").save()
        tag = Tag(name="test2").save()
        self.assertEqual(tag.count, 0)
        self.obs1.tag(["test", "test2"])
        fresh_tag = Tag.find(name="test")
        self.assertEqual(fresh_tag.count, 1)
        fresh_tag = Tag.find(name="test2")
        self.assertEqual(fresh_tag.count, 1)
Test that the count of a tag is updated when a tag is added
        to an observable.
tests/schemas/tag.py