get_count($app_id)

Changed code as requested, moved down to the get group of functions.