count breaks with select multiple columns

Fix for #15065