         navigationController?.popViewControllerAnimated(true)
     }
     
-    private func callService(serviceCalled: ServiceCalled)
+    private func updatePhotosCountLabel(count: Int)
+    {
+        let numberFormatter = NSNumberFormatter()
+        numberFormatter.groupingSeparator = ","
+        numberFormatter.numberStyle = NSNumberFormatterStyle.DecimalStyle
+        
+        let boldAttributed: NSMutableAttributedString!
+        if let strCount = numberFormatter.stringFromNumber(count)
+        {
+            boldAttributed = NSMutableAttributedString(string: strCount, attributes: [NSFontAttributeName: UIFont.boldSystemFontOfSize(photosCountLabel.font.pointSize)])
+        }
+        else
+        {
+            boldAttributed = NSMutableAttributedString(string: "\(count)", attributes: [NSFontAttributeName: UIFont.boldSystemFontOfSize(photosCountLabel.font.pointSize)])
+        }
+        
+        let normalAttributed = NSAttributedString(string: " photos")
+        boldAttributed.appendAttributedString(normalAttributed)
+        photosCountLabel.attributedText = boldAttributed
+    }
+    
+    // MARK: - Methods for services calls
+    
+    private func callServiceType(serviceType: ServiceType)
     {
         let service: Service!
-        switch serviceCalled {
+        switch serviceType {
         case .Instagram:
             service = InstagramService(tag: searchTerm)
         case .Flickr:


import UIKit

enum ServiceCalled: String
{
    case Instagram = "Instagram"
    case Flickr = "Flickr"

        case segmentedControl:
            if segmentedControl.selectedSegmentIndex == 0
            {
                callServiceType(.Instagram)
            }
            else
            {
                callServiceType(.Flickr)
            }
        default:
            break
