bugfix: we need to pass the priv pointer to the count() callback and not the storage itself