Meta Interview Question

Given a sorted array, find out the occurrence of a certain number.