Calculate number of tablets in Cdp view