  We present a compact formula computing rational trigonometric sums. E.
Verlinde's expression for the dimension of conformal blocks in WZW theory is an
example of such a sum. As an application, we show that a formula of Bismut and
Labourie for the Riemann-Roch numbers of moduli spaces of flat connections on a
Riemann surface coincides with Verlinde's expression.
