Data Query vs Bucket records

Data Query vs Bucket records

@Vincent Raaijmakers

Hi, I try to understand this:
When I run this data query I get records

const device = new Device({ token: “my-device-token” });
const [records] = await device.getData({ variables: [“digital”],
query: “count”
});
context.log(Records count: ,records.value);

When I look in the bucket of that device (see attached), and filter by that variable, I get a totally different number of registers for each device.
So I clearly do not understand the relation between my query, the # records for that variable returned and number of registers in the bucket for the same variable. I would expect the same numbers. The query returns much higher numbers.

Can someone explain?