Count elements in range in sorted matrix

hard
Count elements in range in sorted matrix - Coding Problem | K5kC