Count Repeated Numbers In Array Python Vs List