Contar elementos en objeto JavaScript

Object.keys(obj).length
Poor Pollan