Premesso che tutto è corretto, a questo punto ...

codice:
#define TOTAL_ELEMENTS ((int)(sizeof(array) / sizeof(array[0])))