added field count to processing and replaced app.route that was removed