count for ajax view