Pergunta de entrevista da empresa SAP

Write a code that counts the Number of objects created for a specific Class.