Bug: Transfer repository doesn't update the count
fix https://github.com/go-xorm/xorm/issues/161