Python Array Count Elements With Value