See this example on Gitlab.com, there is no pending merge, and even then it shows that it has 1.
Note: The same problem happens with Issues