Just noticed there could also be a problem with the database name you are trying to query. If you are querying by collection you need to start with a query of the entire “Stores/Products” database, then find “frozen” in the “collections” field.
wixData.query("Stores/Products") // Wix Stores database
.eq("collections", "Frozen") // ("Collections field", "name of collection")
.count()
.then((num) => {
// Etc