return number of view types and updated to use Ant for building