Numerical answer type, tolerance 0.5.
Answer: 6
The constitution has two stereocentres (C2 and C3, carrying different groups) and one stereogenic double bond (C4=C5). The molecule has no symmetry, so the total number of stereoisomers is 23=8. X itself is (2S,3S,4E). Its mirror image, (2R,3R,4E), is its enantiomer (reflection does not change E/Z). Every other stereoisomer is neither X nor its mirror image, so the number of diastereomers of X is 8−1−1=6.