Pergunta de entrevista da empresa AllGo Systems

Write a Function to count the presence of an Value in an Array, and return that value? (Asked In written test)