dft_filter: use 64-bit numbers to count samples

(cherry picked from commit c276b0f734215afa7b5ce25086900552b06aad76)

Backported, as it fixes (the dft_filter part of) tracker item 3594822.