[core][fr][js][bug] no count method in JS (pfff)