require('dotenv').config();
const { createClient } = require('@supabase/supabase-js');
const sb = createClient(process.env.SUPABASE_URL, process.env.SUPABASE_SERVICE_KEY);
sb.from('tasks').select('status').then(r=>{
  const s={};
  r.data.forEach(t=>s[t.status]=(s[t.status]||0)+1);
  console.log(s);
});
