getNotesCount method
Implementation
Future<int> getNotesCount() async {
final userId = _client.auth.currentUser?.id;
if (userId == null) return 0;
final response = await _client
.from('user_notes')
.select()
.eq('user_id', userId)
.count(CountOption.exact);
return response.count;
}