def _get_bikes_available(sta):
    """Given a GBFS station status blob, return the number of bikes"""
    # 'num_ebikes_available" is not part of the GBFS spec, but it appears
    # in the Divvy API response
    return sta['num_bikes_available'] + sta.get('num_ebikes_available', 0)