When I create the saved procedure, i can create some variable yes? for example:
CREATE PROCEDURE `some_proc` () BEGIN DECLARE some_var INT; SET s
The following select statement should allow you to save the result from count(*).
SELECT COUNT(*) FROM mytable INTO some_var;