Updated the count function in utils.py (#1013)
Updated the count function in utils.py (#1013)

* improved the count function in utils.py

* updated according to PEP style

aimacode/aima-python,jo-tez/aima-python,Chipe1/aima-python,Chipe1/aima-python,jo-tez/aima-python,aimacode/aima-python