I see the issue clearly from your screenshot.
Persistent stats without a database — file I/O (FileWriter, BufferedReader) to persist the hit count across server restarts Dynamic UI based on role — Admin sees the "Show Stats" button; regular users ...