Get row and column count

Refer to the following example code to see how to get rows/columns/cells count in a specific range.