count
User
Owned
Collections
@Query(value = ""SELECT COUNT(*) FROM " + COLLECTIONS_KEY + _WHERE_ +
OWNER_KEY + "=:" + USER_IDENTIFIER_KEY",
nativeQuery = true
)
Method to count get the user owned collections
Return
the user collections as long
Parameters
userId
The identifier of the user