Add logic to get row and columns number.