Problem with counting bombs

I have a serious problem here