Count Object In Array Javascript Documentation