cast search result count to int
add /search API endpoint (beta)