A note on the number of t-core partitions