Macro to get the count of elements in a 2-dimensional array

Question | Sep 9, 2016 | hkumar 

We want to write a macro - COUNT2D - that returns the count of elements in a 2-dimensional array of any type:

#define COUNT2D(arr)  _____

Which one of followings is the correct definition of COUNT2D?