Get count endpoint and get data endpoint