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='島根県') 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='島根県') or (TMP05 = '鎌手駅' and PREF='島根県') or (TMP05 = '石見津田駅' and PREF='島根県') or (TMP05 = '益田駅' and PREF='島根県') or (TMP05 = '戸田小浜駅' and PREF='島根県') or (TMP05 = '飯浦駅' and PREF='島根県') ) ) ;