Get count element from javscript object