A sum of $j$ consecutive odd numbers starting at $2a+1$ is $j(j+2a)$, so the values of $j$ correspond to factorizations $N=jk$ with $k\ge j$ and $k\equiv j\pmod2$.
For odd $N$ these are factor pairs; for $N=4M$ they are factor pairs of $M$; $N\equiv2\pmod4$ has none.
Counting $N<1500$ with exactly $4$ such pairs (by computer) gives $157$.