Levinson's theorem for time-periodic potentials