Numbers of splits in a 2D array graphically

Given a 2D array of either ‘’ or ‘/’, find out how many pieces this rectangle is divided into graphically.
For a 2X2 matrix with
The matrix split into 5 pieces - the diamond in middle and the four corners. Return 5 as the answer.

Hi all,

Can anybody help me find the intuition behind this problem?