We prove a renewal-type limit theorem for denominators of the continued fraction expansion. We use it to show the existence of a limiting distribution for certain trigonometric sums. Such sums are given by Birkhoff sums over rotations of a function with a singularity of type 1/x.