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='長崎県') 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='長崎県') ) ) ;