fix deleteObject for supporting PgSql
add count method for yoda\Model