Google Interview Question

Given a sorted array [2, 4, 4, 4, 8, 9, 9, 11], write a function to give number of elements in range [3, 10]