Fractional part sums and lattice points