Add macro for getting number of displayed views