fix problem with 'count'