Let \( f(x)=|(x-1)|(x^2-2x-3)|+x-3, \ x\in \mathbb{R} \). If \( m \) and \( M \) are respectively the number of points of local minimum and local maximum of \( f \) in the interval \( (0,4) \), then \( m+M \) is equal to __________.