add count endpoint for comparison api