Layers not immediately updated with number of results

Description

1) Set up an Oracle data store:
2) Go to "layers" -> Add a New Resource
3) From the drop down menu, choose your oracle source.

This gives me a nice list of results, however the number of results its reporting at the top/bottom is incorrect:

<< < 1 2 3 4 5 > >> Results 0 to 0 (out of 0 items)

If I scroll to another page, it updates to be correct:
<< < 1 2 3 4 5 > >> Results 26 to 50 (out of 2,098 items)

Environment

None

Status

Assignee

Unassigned

Reporter

codehaus

Triage

None

Fix versions

None

Affects versions

2.2.2

Components

Priority

Lowest
Configure