Treat the middle piece through the graph of \(g(x) = 4x^2 - 1\) on \((-1, 1)\), an even parabola with minimum -1 at x = 0 rising to 3 at |x| = 1.
On \([0, 1)\), g increases from -1 to 3 and [g] steps at g = 0, 1, 2, i.e. at \(x = \frac12, \frac{1}{\sqrt2}, \frac{\sqrt3}{2}\): 3 jump points. By symmetry on \((-1, 0]\) there are 3 more. At x = 0, g stays in [-1, 0) nearby, so [g] = -1 constant: no jump. Total 6 inside the interval.
Boundary behaviour: as \(x \to -1^+\), \(g \to 3^-\), so \([g] \to 2 = f(-1) = |2(1) + 3 - 7| = 2\) and the left side also gives 2, so f is continuous at -1. At x = 1: \(f(1^-) = 2\) but \(f(1) = f(1^+) = |2| + |-1| = 3\), so f is discontinuous at x = 1.
Number of discontinuities = 6 + 1 = 7.
Answer: 7