What are you trying to accomplish? It looks like you are trying to fetch multiple records for a given date, and count the total, how many have status 1, and how many have status 2.
You could let the database do the work:
SELECT status, COUNT(*)
FROM table
WHERE day = ? AND month = ? AND year = ?
GROUP BY status