Yes, generally it will find it an count it. However, it is possible to block the bot that ahrefs uses for crawling via your robots.txt file. And you could specifically block the robot from ahrefs while still allowing the Google crawler to find and index the links. So it would be possible to use that as a technique for hiding your links from your network from competitors.