Inventory check in advancement

I try to check, if the player has more items than (x>64) without nbt (because it causes lags). I tried to use inventory_changed trigger, but it can't count more. For example: json "trigger": { "trigger": "minecraft:inventory_changed", "conditions": { "items": [ { "items": "minecraft:obsidian", "count": 1728 } ] } }
Continue to help post