fixed COUNT() query (#13)