Implement get_entries_count