Python Count Elements In Array In Jquery