Question: I am trying to create a store, which I can then create a list from. The problem is when I create the store, it is empty.

This is my model:

```
Ext.define('MyApp.model.TrackingCode', {
    extend: 'Ext.data.Model',

    config: {
        fields: [
            'id',
            'code',
            'count'
        ]
    }
});

```

And here's the code where I am trying to populate the store:

```
var tc = [{id: 1, code: 'abc', count: 5}];
var store = Ext.create('Ext.data.Store', {
  model: 'MyApp.model.TrackingCode',
  data: tc
});

```

The summary for console.log(store); shows this:

Class {\_proxy: Class, data: Class, \_totalCount: null, eventDispatcher: Class, initialConfig: Object…}

Which shows the total count value as null, so I don't think my store is getting populated.

Any insight would be appreciated.

Answer: 
\_totalCount will be null when you load data by inline. \_totalCount will have some value when you load data from server. In short \_totalCount refers to the total set of data in server. So dont worry about it.

Try this

```
console.log(store.getCount());

```

This will return the exact count of data loaded in the store. If it returns some value, then your code is good.
You have to put the "data" property inside Store's **config** object like this:

```
var tc = [{id: 1, code: 'abc', count: 5}];
var store = Ext.create('Ext.data.Store', {
  model: 'MyApp.model.TrackingCode',
  config : {
    data: tc
  }
});

```