Bug Description
When a taxonomy condition is added to collection:count based "if" statment i.e.: {{ if {collection:count in="collection_name" taxonomy:year="2019"} > 0}} an error is thrown:


It happens both if filtered collection has entries or not.
How to Reproduce
Try to check it there are entries in collection with count and taxonomy filter added.

Extra Detail
When taxonomy filter is removed - everything works fine.

Environment
MacOs 10.4.16, Valet, PHP 7.3.18
Statamic version: 3.0.0.-beta-31
PHP version: 7.3.18
Install method (choose one):
- Fresh install from
statamic/statamic