diff --git a/relay/main.go b/relay/main.go
index 7c113ec..54b306d 100644
--- a/relay/main.go
+++ b/relay/main.go
@@ -60,7 +60,15 @@ func main() {
// set up other http handlers
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("content-type", "text/html")
- fmt.Fprintf(w, `Welcome to scrapestr!`)
+
+ // Query the total number of events
+ count := 0
+ row := db.DB.QueryRow("SELECT COUNT(*) FROM event")
+ if err := row.Scan(&count); err != nil {
+ fmt.Printf("Error counting events: %v\n", err)
+ }
+
+ fmt.Fprintf(w, `Welcome to scrapestr!
Number of events stored: %d`, count)
})
fmt.Println("running on :3334")