remove grouping on count query
make it usable from javascript and improve readme