also to state the obvious,
if you're unable to find a 45t, then grab the next best thing and change the size of the front sprocket as well in order to keep the same gearing ratio.
they're a pretty common sprocket in 520 pitch.
428 pitch has fewer teething options but if it's for a YZ100 could be worth considering as it'll produce less "drag" than the 520.
less drag = more zinngggggg...........