is it okay to disconnect Antminer like S7 > I have a kind of unstable internet connection
sometimes it gets disconnected for over an hour 
the question here is , does that hour of mining without internet count ?

thanks
While you aren't connected to the internet you can't submit shares to your pool, so you won't earn anything during that time period. That's why it's recommended for miners to have fast, low latency connections.