forked from gitea/gitea

Backport #25879 by @yp05327
Release count is not correct:
https://try.gitea.io/yp05327/testrepo/tags

https://try.gitea.io/yp05327/testrepo/releases

https://try.gitea.io/yp05327/testrepo/releases/tag/testtag

We already have correct release count, no need to calculate it again.
c5e187c389/modules/context/repo.go (L547)
Co-authored-by: yp05327 <576951401@qq.com>