For D Major - there are 2 sharps: F Sharp and C Sharp.
D, E, F sharp, G, A, B, C sharp, D
I have listed all the keys out.
To remember it more easily - the flats are the reverse order of the sharps.
It is easier to memorize this. The circle of 5ths may be a bit confusing if you are not too familar with music reading.
No Flats or Sharps: C Major
Sharps (in ascending order from 1-7 sharps): G, D, A, E, B, F sharp, C Sharp.
Flats (in ascending order from 1-7 flats): F, B flat, E flat, A flat, D flat, G flat, C flat.