function es_event_get_spots($event)
{
    $event_manager = new EventManager($event);
    $spots = intval($event_manager->get_spots());
    return $spots > 0 ? $spots : 5;
}