fixed(?) count(*) problem in grid