We express the number of lattice points inside certain simplices with vertices in Q(3) or Q(4) in terms of Dedekind-Rademacher sums. This leads to an elementary proof of a formula relating the Euler characteristic of the Seiberg-Witten-Floer homology of a Brieskorn Z-homology sphere to the Casson invariant.