Count No Of Elements In Array Python