Update core; Query::count() returns int; fix file and line number in IOException

Signed-off-by: devxdev <xdev@devxdev.com>