count User Owned Links

@Query(value = "SELECT COUNT(*) FROM " + LINKS_KEY + _WHERE_ + OWNER_KEY + "=:" + USER_IDENTIFIER_KEY + " AND dtype='" + LINK_KEY + "'", nativeQuery = true )
abstract fun countUserOwnedLinks(@Param(value = "user_id") userId: String): Long

Method to count the user's owned links

Return

the count of the user links as long

Parameters

userId

The identifier of the user