All disconnections does count as leaving and will be penalized appropriately details on this policy can be found here:
If you find you are disconnecting frequently, please avoid Competitive Play as penalties cannot be reversed. Consider looking at these starting troubleshooting steps to check for any issues that might be corrected on your end to prevent future disconnections: