Count object with Mask R-CNN

Hi, I try to train myself wtih mask R-CNN and i see this colab work :

How can i modify this code to count people on images ?