关于mysql shell脚本的问题

图片说明
第四行我想打印出结果,正确写法是什么,求大神帮忙!!!

#!/bin/sh
value=`mysql -uroot -proot -e "use powersystemview; select count(*) from alarminfo;"`
echo $value
exit 0