public static int getVisits() {
        Connection c = getConnection();
        int size = 0;
        try {
            Statement s = c.createStatement();
            ResultSet set = s.executeQuery("SELECT * FROM logs");
            while(set.next()) {
                size++;
            }
        } catch (SQLException sqlEx) {
            return -1;
        } catch (NullPointerException nullEx) {
            return -1;
        }
        closeConnection(c);
        return size;
    }