Cardslib: use own getCount and getItem

Change-Id: I19696a80769ec73dfe31646d66f1d3ac32bd40e7