renameed ideasTypes controller to ideaTypes
implementes count endpoint