set item count on setAdapter, else widget doesn't layout on setAdapter

When instantiating the widget and calling setAdapter, the itemCount was not set (as it was in com.android.ex.widget), this meant whenever I setAdapter, the widget wouldn't layout.