WIP: Added execution of count query.