The aldotetroses have two chiral carbons (C2 & C3), and there are 2^2, or four, possible stereoisomers.
Two of the isomers have the D-configuration, and two have the L-configuration.
The two D-isomers have the same configuration at C3, but they differ in configuration (arrangement of the —OH group) at the other chiral carbon, C2.
Aldopentoses have three chiral carbons, and there are 2^3, or 8, possible stereoisomers—four D forms and four L forms.
Aldohexoses have four chiral carbons and 2^4, or 16, stereoisomers—eight D forms and eight L forms