The easiest way is to use a free program like G*Power (Faul, Erdfelder & Lang), but it is a bit of a black box, so you should seek for other sources to know what is going on.
For your estimated effectsize of d=0.47 you get an estimated sample size of N=38 for a repeated measures t-test. For d=0.5 it is N=34 and d=0.4 N=52