Count Repeated Numbers In Array Python Definition