I was able to figure it out after some time. Here's the code.
%% COUNT BIG CELLS
%convert image to black and white
img_bw=im2bw(img);
figure,imshow(img_bw)
%background will be black and object will be white
inv_img=imcomplement(img_bw);
figure,imshow(inv_img)
%use imfill function to fill the holes in the object
img2=imfill(inv_img,'holes');
figure,imshow(img2)
%remove small objects containing fewer than 1000 pixels in the binary image
%using bwareaopen
img3=bwareaopen(img2,1000);
figure,imshow(img3)
%use bwmorph erode function to further enhance the objects
img4=bwmorph(img3,'erode');
figure,imshow(img4)
%conduct another removal of small objects containing fewer than 500 pixels
%in a binary image
img5=bwareaopen(img4,500);
figure,imshow(img5)
%use the bwlabel function to count the objects
[labeledImage,numberofObject]=bwlabel(img5); %count: 7