count stuck tasks in work task count

I use the published agendas to count and
graph my task queue, like so:

work_count=$(grep '^\*' ~/.agenda-work.org | sort -u | wc -l)
echo org.todo.work: $work_count
echo  "org.todo.work $work_count $date" | nc $graphite_host $graphite_port

home_count=$(grep '^\*' ~/.agenda-home.org | sort -u | wc -l)
echo org.todo.home: $home_count
echo  "org.todo.home $home_count $date" | nc $graphite_host $graphite_port

stuck_count=$(grep '^\*' ~/.agenda-stuck.org | sort -u | wc -l)
echo org.todo.stuck: $stuck_count
echo  "org.todo.stuck $stuck_count $date" | nc $graphite_host $graphite_port