Replace ncells with COUNT