Count query instead of len(list)