SELECT count(ID) as CNT FROM DAT_HAISYA WHERE ENABLE='ENABLE:公開中' AND PREF='北海道' AND ( ( (TMP05 = '木古内駅' and PREF='北海道') or (TMP05 = '札苅駅' and PREF='北海道') or (TMP05 = '泉沢駅' and PREF='北海道') or (TMP05 = '釜谷駅' and PREF='北海道') or (TMP05 = '渡島当別駅' and PREF='北海道') or (TMP05 = '茂辺地駅' and PREF='北海道') or (TMP05 = '上磯駅' and PREF='北海道') or (TMP05 = '清川口駅' and PREF='北海道') or (TMP05 = '久根別駅' and PREF='北海道') or (TMP05 = '東久根別駅' and PREF='北海道') or (TMP05 = '七重浜駅' and PREF='北海道') or (TMP05 = '五稜郭駅' and PREF='北海道') or (TMP05 = '函館駅' and PREF='北海道') ) ) ;