CORE-4155: modified the code to count a user's public apps so that it omits deleted apps from teh count