mysql SELECT COUNT(*) FROM (SELECT COUNT(*) code example Example: select count from table mysql SELECT COUNT(*) FROM count_demos;