I have been trying to add CountRelated="TRUE" attribute on lookup field however whenever I try to deploy my SharePoint hosted app installation is failing with an error saying "The 'CountRelated' attribute is not allowed."
Visual Studio 2012 is also showing error "The 'CountRelated' attribute is not allowed." for CountRelated attribute used on lookup field.